<template>
  <div>
    <p>{{arr}}</p>
  </div>
</template>

<script>
export default {

  data () {
    return {
      arr: []
    }
  },
  created () {
    var brr = [1, 0, 2, 0, 0, 0, 5]
    var crr = []
    brr.forEach((item, index) => {
      crr[index] = item *= 2
    })
    this.arr = crr
  }
}
</script>

<style>
</style>
